<?php
// XXX session start is requires by userLogin, we need some sort of hook to signal that a block requires it so it can get put in the skin.( Somewhat dangerous to have it included in the block, or else risk echoing before it's required );
session_start();

require_once 'tpl/use/block/styleCore.php';
require_once 'tpl/use/block/userLogin.php';
require_once 'util/perm.php';

function skin_ShowFora( $fora ) {
  styleHead();

  UserLoginBar();
  foreach( $fora as $forum ) {
    echo "<p><a href=\"spit.php?type=THREAD&fnum=${forum['id']}&start=0&inc=5\">${forum['title']} - ${forum['datum']}</a></p>";
  }
  if( hasPerm( 'edit.forum' ) ) {
    echo '<a href="admin.php?type=FORUM" >Edit Forums</a>';
  }
  styleFoot();
}
?>
